]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appMenu: Make show() a no-op in locked state
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 22 Aug 2012 13:42:27 +0000 (15:42 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 22 Aug 2012 18:31:43 +0000 (20:31 +0200)
The app menu is hidden when entering the lock screen, however it
might be shown again while the lock is still in place - we don't
want this ever to be the case, so make show() a no-op while the
screen is locked.

https://bugzilla.gnome.org/show_bug.cgi?id=682475

js/ui/panel.js

index d9cf5983ca168668c72f5c70a325f5e07d625712..943079f2d81b9b5552b522eaac4391046537be8d 100644 (file)
@@ -285,7 +285,7 @@ const AppMenuButton = new Lang.Class({
     },
 
     show: function() {
-        if (this._visible)
+        if (this._visible || Main.screenShield.locked)
             return;
 
         this._visible = true;